package modler

import "gorm.io/gorm"

type User struct { //用户表
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(50)"`
}
type Role struct { //角色表
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}
type Node struct { //权限表
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
}
type UserRole struct { //用户和角色
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type RoleNode struct { //角色和权限
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type House struct {
	gorm.Model
	HouseCode string `gorm:"type:varchar(30)"` //车辆编号
	HouseName string `gorm:"type:varchar(50)"` //车辆名称
	HouseNum  string `gorm:"type:varchar(50)"` //车辆数量
}
type HouseOrder struct {
	gorm.Model
	HouseOrderCode   string `gorm:"type:varchar(50)"` //车辆订单编码
	HouseOrderPrince string `gorm:"type:varchar(50)"` //车辆价格
	Hid              int    `gorm:"type:int"`         //车辆Id
}
type HouseOrdersList struct {
	OrderId          int    `gorm:"type:int"`
	HouseCode        string `gorm:"type:varchar(30)"`
	HouseName        string `gorm:"type:varchar(50)"`
	HouseNum         string `gorm:"type:varchar(50)"`
	HouseOrderCode   string `gorm:"type:varchar(50)"`
	HouseOrderPrince string `gorm:"type:varchar(50)"`
}

// //车辆大全/////

type CarType struct {
	gorm.Model
	CarName string `gorm:"type:varchar(50)"` //车辆类型
}
type CarOrder struct {
	gorm.Model
	CarOrderCode  string `gorm:"type:varchar(50)"` //车辆编码
	CarOrderName  string `gorm:"type:varchar(50)"` //车辆名称
	CarOrderPrice string `gorm:"type:varchar(50)"` //车辆价格
	Tid           int    `gorm:"type:int"`
}
type CarOrderList struct {
	OrderId       int    `gorm:"type:int"`
	CarOrderCode  string `gorm:"type:varchar(50)"` //车辆编码
	CarOrderName  string `gorm:"type:varchar(50)"` //车辆名称
	CarOrderPrice string `gorm:"type:varchar(50)"` //车辆价格
	CarName       string `gorm:"type:varchar(50)"` //车辆类型
}

////仓库模块/////

type Bran struct {
	gorm.Model
	BranCode string `gorm:"type:varchar(50)"` //车辆编号
	BranName string `gorm:"type:varchar(50)"` //车辆名称
	BranNo   string `gorm:"type:varchar(50)"` //车牌号
	BranTime string `gorm:"type:varchar(50)"` //时间
}
type BranOrder struct {
	gorm.Model
	BranOrderCode string `gorm:"type:varchar(50)"` //合同编号
	BranOrderName string `gorm:"type:varchar(50)"` //合同名称
	Bid           int    `gorm:"type:int"`
}
type BranOrderList struct {
	OrderId       int    `gorm:"type:int"`
	BranCode      string `gorm:"type:varchar(50)"` //车辆编号
	BranName      string `gorm:"type:varchar(50)"` //车辆名称
	BranNo        string `gorm:"type:varchar(50)"` //车牌号
	BranTime      string `gorm:"type:varchar(50)"` //时间
	BranOrderCode string `gorm:"type:varchar(50)"` //合同编号
	BranOrderName string `gorm:"type:varchar(50)"` //合同名称
}
